<?php $row_format = $form->getWidgetSchema()->getFormFormatter()->getRowFormat() ?>
<?php #var_dump($row_format);die(); ?>


<?php $method = "get".sfInflector::camelize($field) ?>

<?php if (substr($field,-2) == 'id' && ($field!= 'id')): ?>
 <?php $method = substr($method , 0, -2); ?>
<?php endif; ?>

<?php if (($reclamo->$method() != "") && $field != 'id'  && $field != 'es0800' && $field != 'updated_at'): ?>


<?php if ($field  == 'condicion_del_reclamante'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => Condicion::toString($reclamo->$method()),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>


<? elseif ($field  == 'legajo_cau'): ?>
<?php

  echo strtr("<tr>\n  <th>%label%</th>\n  <td>%error% <h1>%field% </h1>%help%%hidden_fields%</td>\n</tr>\n", array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $reclamo->getLegajoCauCompleto(),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>

<? elseif ($field  == 'nro_reclamo'): ?>
<?php /*
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $reclamo->getNroReclamoCompleto(),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  )) */ ?>


<? elseif ($field  == 'estado'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => Estado0800::toString($reclamo->$method()),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>

<? elseif ($field  == 'created_at'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $reclamo->$method('d-m-Y'),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>
<? elseif (($field  == 'fecha_finalizacion') || ($field  == 'fecha_ingreso_oceba') || ($field  == 'fecha_recepcion_gerencia') || ($field  == 'fecha_translado_distribuidor')
  || ($field  == 'fecha_recepcion_distribuidor') || ($field  == 'fecha_interrupcion_servicio')): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $reclamo->$method('d-m-Y'),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>
<? elseif ($field  == 'es_primera_instancia'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $reclamo->getPrimeraInstanciaStr(),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>



<? else: ?>


  <?php echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $reclamo->$method(),
    "%help%" =>  isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  )) ?>

<?php endif; ?>
<?php endif; ?>